/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package modules.enderecamento.util;

import java.awt.Component;
import javax.swing.JOptionPane;

/**
 *
 * @author Clezio
 */
public class BoxPanel extends JOptionPane{

    public static void showMessageError(Object message) {
        showMessageDialog(null, message,"Atenção",JOptionPane.ERROR_MESSAGE);
    }

    public static int showConfirmDialog(Component parentComponent, Object message){
         Object[] options = { "Sim", "Não" };
         return showOptionDialog(null,message, "Atenção",JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null,options, options[0]);
    }

}
